package com.example.personnel_oa.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.Education;
import com.example.personnel_oa.mapper.EducationMapper;
import com.example.personnel_oa.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author asus
* @description 针对表【education】的数据库操作Service实现
* @createDate 2022-10-20 13:57:58
*/
@Service
public class EducationServiceImpl extends ServiceImpl<EducationMapper, Education>
implements EducationService {
    @Autowired
    EducationMapper educationMapper;
    @Override
    public List<Education> selectlist() {
        QueryWrapper<Education> wrapper = new QueryWrapper<>();
        QueryWrapper<Education> education = wrapper.le("education_state", 0);
        List<Education> sources = educationMapper.selectList(education);
        return sources;
    }
}
